/**
 * Created by xiaobao on 2017/7/23.
 */
const path = require('path');
const webpack = require('webpack');
const merge = require('webpack-merge');
const baseConfig = require('./base');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const root = path.resolve(__dirname, '..');

module.exports = merge(baseConfig, {
    plugins: [
        new HtmlWebpackPlugin({
            filename: path.join(root,'index.html'),
            template: path.join(root, 'index.tpl'),
            inject: 'body'
        })
    ]
});